home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•Word Games•
/
Will of Fortune •••
/
Will of Fortune еее.rsrc
/
CODE_2.txt
< prev
next >
Wrap
Text File
|
1989-03-23
|
12KB
|
219 lines
# near model CODE resource
# jump table entries: 8-14 (7 of them)
export_7:
00000000 2F0A move.l -[A7], A2
00000002 203C 0000 0064 move.l D0, 0x64 /* 'd' */
00000008 A122 syscall NewHandle, flags=1
0000000A 226F 0008 movea.l A1, [A7 + 0x8]
0000000E 2288 move.l [A1], A0
00000010 4A40 tst.w D0
00000012 6620 bne +0x22 /* 00000034 */
00000014 A029 syscall HLock
00000016 2450 movea.l A2, [A0]
00000018 7000 moveq.l D0, 0x00
0000001A 7218 moveq.l D1, 0x18
0000001C 204A movea.l A0, A2
label0000001E:
0000001E 20C0 move.l [A0]+, D0
00000020 51C9 FFFC dbf D1, -0x6 /* 0000001E */
00000024 4267 clr.w -[A7]
00000026 487A 00D2 pea.l [PC + 0xD2 /* 000000FA, value 0x94D6163 '\tMac', pstring "MacinTalk" */]
0000002A A997 syscall OpenResFile
0000002C 301F move.w D0, [A7]+
0000002E 6A12 bpl +0x14 /* 00000042 */
00000030 3038 0A60 move.w D0, [0x00000A60 /* ResErr */]
label00000034:
00000034 245F movea.l A2, [A7]+
00000036 2F57 0008 move.l [A7 + 0x8], [A7]
0000003A 508F addq.l A7, 8
0000003C 3F40 0004 move.w [A7 + 0x4], D0
00000040 4E75 rts
label00000042:
00000042 3540 004A move.w [A2 + 0x4A], D0
00000046 1F3C 0000 move.b -[A7], 0x0
0000004A A99B syscall SetResLoad
0000004C 42A7 clr.l -[A7]
0000004E 2F3C 4452 5652 move.l -[A7], 0x44525652 /* 'DRVR' */
00000054 487A 009C pea.l [PC + 0x9C /* 000000F2, value 0x72E5350, pstring ".SPEECH" */]
00000058 A9A1 syscall GetNamedResource
0000005A 225F movea.l A1, [A7]+
0000005C 3038 0A60 move.w D0, [0x00000A60 /* ResErr */]
00000060 66D2 bne -0x2C /* 00000034 */
00000062 1F3C 0001 move.b -[A7], 0x1
00000066 A99B syscall SetResLoad
00000068 2078 011C movea.l A0, [0x0000011C /* UTableBase */]
0000006C D0FC 0080 add.w A0, 0x80
00000070 303C 0020 move.w D0, 0x20 /* ' ' */
label00000074:
00000074 5340 subq.w D0, 1
00000076 0C40 0012 cmpi.w D0, 0x12
0000007A 6E06 bgt +0x8 /* 00000082 */
0000007C 303C F060 move.w D0, 0xF060
00000080 60B2 bra -0x4C /* 00000034 */
label00000082:
00000082 0CA0 0000 0000 cmpi.l -[A0], 0x0
00000088 66EA bne -0x14 /* 00000074 */
0000008A 3200 move.w D1, D0
0000008C 5241 addq.w D1, 1
0000008E 4441 neg.w D1
00000090 3541 0046 move.w [A2 + 0x46], D1
00000094 2F09 move.l -[A7], A1
00000096 3F00 move.w -[A7], D0
00000098 2F3C 0000 0000 move.l -[A7], 0x0
0000009E A9A9 syscall SetResInfo
000000A0 2F09 move.l -[A7], A1
000000A2 A9A2 syscall LoadResource
000000A4 3038 0A60 move.w D0, [0x00000A60 /* ResErr */]
000000A8 2049 movea.l A0, A1
000000AA A029 syscall HLock
000000AC 245F movea.l A2, [A7]+
000000AE 205F movea.l A0, [A7]+
000000B0 201F move.l D0, [A7]+
000000B2 225F movea.l A1, [A7]+
000000B4 2F08 move.l -[A7], A0
000000B6 2F0A move.l -[A7], A2
000000B8 2440 movea.l A2, D0
000000BA 2452 movea.l A2, [A2]
000000BC 2F0A move.l -[A7], A2
000000BE 2452 movea.l A2, [A2]
000000C0 41EA 0000 lea.l A0, [A2 + 0x0]
000000C4 2149 003C move.l [A0 + 0x3C], A1
000000C8 43FA 0028 lea.l A1, [PC + 0x28 /* 000000F2, value 0x72E5350, pstring ".SPEECH" */]
000000CC 2149 0012 move.l [A0 + 0x12], A1
000000D0 4268 0016 clr.w [A0 + 0x16]
000000D4 4268 001A clr.w [A0 + 0x1A]
000000D8 42A8 001C clr.l [A0 + 0x1C]
000000DC A000 syscall Open/PBHOpen/HOpen
000000DE 3F68 0010 000C move.w [A7 + 0xC], [A0 + 0x10]
000000E4 2568 0034 0042 move.l [A2 + 0x42], [A0 + 0x34]
000000EA 205F movea.l A0, [A7]+
000000EC A02A syscall HUnlock
000000EE 245F movea.l A2, [A7]+
000000F0 4E75 rts
000000F2 072E 5350 btst [A6 + 0x5350], D3
000000F6 4545 chk.w D2, D5
000000F8 4348 chk.w D1, A0
000000FA 094D bchg A5, D4
000000FC 6163 bsr +0x65 /* 00000161 */
000000FE 696E bvs +0x70 /* 0000016E */
00000100 5461 addq.w -[A1], 2
00000102 6C6B bge +0x6D /* 0000016F */
export_4:
00000104 2F0A move.l -[A7], A2
00000106 206F 0008 movea.l A0, [A7 + 0x8]
0000010A A029 syscall HLock
0000010C 2450 movea.l A2, [A0]
0000010E 41EA 0000 lea.l A0, [A2 + 0x0]
00000112 A201 syscall Close, flags=2
00000114 302A 004A move.w D0, [A2 + 0x4A]
00000118 6704 beq +0x6 /* 0000011E */
0000011A 3F00 move.w -[A7], D0
0000011C A99A syscall CloseResFile
label0000011E:
0000011E 206F 0008 movea.l A0, [A7 + 0x8]
00000122 A02A syscall HUnlock
00000124 A023 syscall DisposHandle/DisposeHandle
00000126 245F movea.l A2, [A7]+
00000128 2F57 0004 move.l [A7 + 0x4], [A7]
0000012C 588F addq.l A7, 4
0000012E 4E75 rts
export_5:
00000130 221F move.l D1, [A7]+
00000132 341F move.w D2, [A7]+
00000134 205F movea.l A0, [A7]+
00000136 2F01 move.l -[A7], D1
00000138 2F08 move.l -[A7], A0
0000013A A029 syscall HLock
0000013C 2250 movea.l A1, [A0]
0000013E 4E56 FFE0 link A6, -0x0020
00000142 41EE FFE0 lea.l A0, [A6 - 0x20]
00000146 3169 0046 0018 move.w [A0 + 0x18], [A1 + 0x46]
0000014C 317C 0002 001A move.w [A0 + 0x1A], 0x2
00000152 3142 001C move.w [A0 + 0x1C], D2
00000156 A204 syscall Control, flags=2
00000158 4E5E unlink A6
0000015A 205F movea.l A0, [A7]+
0000015C A02A syscall HUnlock
0000015E 4E75 rts
export_2:
00000160 7400 moveq.l D2, 0x00
00000162 221F move.l D1, [A7]+
00000164 141F move.b D2, [A7]+
00000166 205F movea.l A0, [A7]+
00000168 2F01 move.l -[A7], D1
0000016A 2F08 move.l -[A7], A0
0000016C A029 syscall HLock
label0000016E:
0000016E 2250 movea.l A1, [A0]
00000170 4E56 FFE0 link A6, -0x0020
00000174 41EE FFE0 lea.l A0, [A6 - 0x20]
00000178 3169 0046 0018 move.w [A0 + 0x18], [A1 + 0x46]
0000017E 317C 0003 001A move.w [A0 + 0x1A], 0x3
00000184 3142 001C move.w [A0 + 0x1C], D2
00000188 A204 syscall Control, flags=2
0000018A 4E5E unlink A6
0000018C 205F movea.l A0, [A7]+
0000018E A02A syscall HUnlock
00000190 4E75 rts
export_3:
00000192 7400 moveq.l D2, 0x00
00000194 225F movea.l A1, [A7]+
00000196 141F move.b D2, [A7]+
00000198 321F move.w D1, [A7]+
0000019A 205F movea.l A0, [A7]+
0000019C 2F09 move.l -[A7], A1
0000019E 2F08 move.l -[A7], A0
000001A0 A029 syscall HLock
000001A2 2250 movea.l A1, [A0]
000001A4 4E56 FFE0 link A6, -0x0020
000001A8 41EE FFE0 lea.l A0, [A6 - 0x20]
000001AC 3169 0046 0018 move.w [A0 + 0x18], [A1 + 0x46]
000001B2 317C 0000 001A move.w [A0 + 0x1A], 0x0
000001B8 3142 001C move.w [A0 + 0x1C], D2
000001BC A204 syscall Control, flags=2
000001BE 317C 0004 001A move.w [A0 + 0x1A], 0x4
000001C4 3141 001C move.w [A0 + 0x1C], D1
000001C8 A204 syscall Control, flags=2
000001CA 4E5E unlink A6
000001CC 205F movea.l A0, [A7]+
000001CE A02A syscall HUnlock
000001D0 4E75 rts
export_1:
000001D2 201F move.l D0, [A7]+
000001D4 225F movea.l A1, [A7]+
000001D6 205F movea.l A0, [A7]+
000001D8 2F00 move.l -[A7], D0
000001DA 2F08 move.l -[A7], A0
000001DC A029 syscall HLock
000001DE 2049 movea.l A0, A1
000001E0 A025 syscall GetHandleSize
000001E2 2F0A move.l -[A7], A2
000001E4 246F 0004 movea.l A2, [A7 + 0x4]
000001E8 2452 movea.l A2, [A2]
000001EA 41EA 0000 lea.l A0, [A2 + 0x0]
000001EE 316A 0046 0018 move.w [A0 + 0x18], [A2 + 0x46]
000001F4 2149 0020 move.l [A0 + 0x20], A1
000001F8 2140 0024 move.l [A0 + 0x24], D0
000001FC A203 syscall Write, flags=2
000001FE 245F movea.l A2, [A7]+
00000200 205F movea.l A0, [A7]+
00000202 3F00 move.w -[A7], D0
00000204 A02A syscall HUnlock
00000206 301F move.w D0, [A7]+
00000208 3F40 0004 move.w [A7 + 0x4], D0
0000020C 4E75 rts
export_6:
0000020E 206F 0010 movea.l A0, [A7 + 0x10]
00000212 2F6F 000C 0010 move.l [A7 + 0x10], [A7 + 0xC]
00000218 2F6F 0008 000C move.l [A7 + 0xC], [A7 + 0x8]
0000021E 2F6F 0004 0008 move.l [A7 + 0x8], [A7 + 0x4]
00000224 2F57 0004 move.l [A7 + 0x4], [A7]
00000228 588F addq.l A7, 4
0000022A A029 syscall HLock
0000022C 2050 movea.l A0, [A0]
0000022E 2068 0042 movea.l A0, [A0 + 0x42]
00000232 A029 syscall HLock
00000234 2050 movea.l A0, [A0]
00000236 4ED0 jmp [A0]
00000238 4E75 rts